#include<iostream>
#include"Udpserver.hpp"


int main(int argc,char *argv[])
{
    if(argc != 2)
    {
        LOG(level::ERROR)<<"you should: "<<argv[0]<<" port";
        exit(1);
    }
    int port = std::stoi(argv[1]);
    std::unique_ptr<udpserve> uptrser = std::make_unique<udpserve>(port);
    uptrser->init();
    uptrser->start();

    return 0;
}